javascript get element by class

110

get element by class -

var elements = document.getElementsByClassName(names); // or:
var elements = rootElement.getElementsByClassName(names);

Comments

Submit
0 Comments